<?php

require_once 'PipesImpl/Config.php';

class Pipes_Config implements PipesImpl_Config
{
    private $_data = array();
    
    public function __construct($data)
    {
        if (is_array($data)) {
            $this->_data = $data;
        } else {
            $this->_data = include $data;
        }
    }
    public function toArray()
    { 
        return $this->_data;
    }
    
    public function __get($key)
    {
        return $this->_data[$key];
    }
}